
class CodePointLib {
    install(script) {
        script.InstallLib("codePoint", "codePoint", [
            script.NativeUtil.closureReturnValue((s, i) => {
                return s.codePointAt(i) || 0;
            },
                'LongRegister', ['StringRegister', 'LongRegister'], false),
            script.NativeUtil.closureReturnValue((i) => {
                return String.fromCodePoint(i);
            },
                'StringRegister', ['LongRegister'], false),
            script.NativeUtil.closureReturnValue((list) => {
                return String.fromCodePoint.apply(null, list.c);
            },
                'StringRegister', ['StructRegister'], false),
        ]);
    }
}

export default CodePointLib;